// JavaScript Document
var xmlhttp;
function GetXmlHttpObject()
{
	if (window.XMLHttpRequest)
	{
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject)
	{
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
} 

/*--------------------Phat-------------------*/
//--------------list ban be ----------------//
function limitphantrang_banbe(ID)
{
	var limit = document.getElementById("phantrang").value;
	var url ="index.php?com=banbe&fun=list&limit="+limit;
		url += "&mauser="+ID ;
	document.location.href = url;
}
//----------------detail--------------------//
function ketban(mauser)
{
	var trangthai = document.getElementById("cb_trangthai").value;
	var url ="index.php?com=banbe&fun=detail&Type=2&mauser="+mauser;
		url += "&trangthai="+trangthai ;
		document.location.href = url;
}
/*--------------------End-Phat-------------------*/

function showResult()
{
	if (xmlhttp.readyState==4 && xmlhttp.status == 200)
	{
		document.getElementById("entry").innerHTML=xmlhttp.responseText;
	}
}
